package com.lightdz.tshirtdz.model.entity;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * @ Description：${description}
 * @ Author     ：zbl
 * @ Date       ：Created in 10:05 10/08/2018
 * @ Modified By：
 */

public class OrderRecordEntity {
    private int tid;
    private String wxid;
    private long pid;
    private String recordTransNum;
    private Integer buystatus;
    private Integer status;
    private Timestamp createtime;
    private Timestamp endtime;
    private String pColor;
    private String pSize;
    private Integer pCount;
    private Integer receiceAddrId;

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public String getRecordTransNum() {
        return recordTransNum;
    }

    public void setRecordTransNum(String recordTransNum) {
        this.recordTransNum = recordTransNum;
    }

    public Integer getBuystatus() {
        return buystatus;
    }

    public void setBuystatus(Integer buystatus) {
        this.buystatus = buystatus;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getEndtime() {
        return endtime;
    }

    public void setEndtime(Timestamp endtime) {
        this.endtime = endtime;
    }

    public String getpColor() {
        return pColor;
    }

    public void setpColor(String pColor) {
        this.pColor = pColor;
    }

    public String getpSize() {
        return pSize;
    }

    public void setpSize(String pSize) {
        this.pSize = pSize;
    }

    public Integer getpCount() {
        return pCount;
    }

    public void setpCount(Integer pCount) {
        this.pCount = pCount;
    }

    public Integer getReceiceAddrId() {
        return receiceAddrId;
    }

    public void setReceiceAddrId(Integer receiceAddrId) {
        this.receiceAddrId = receiceAddrId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderRecordEntity that = (OrderRecordEntity) o;
        return tid == that.tid &&
                pid == that.pid &&
                Objects.equals(wxid, that.wxid) &&
                Objects.equals(recordTransNum, that.recordTransNum) &&
                Objects.equals(buystatus, that.buystatus) &&
                Objects.equals(status, that.status) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(endtime, that.endtime) &&
                Objects.equals(pColor, that.pColor) &&
                Objects.equals(pSize, that.pSize) &&
                Objects.equals(pCount, that.pCount) &&
                Objects.equals(receiceAddrId, that.receiceAddrId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(tid, wxid, pid, recordTransNum, buystatus, status, createtime, endtime, pColor, pSize, pCount, receiceAddrId);
    }
}
